/*
 * @Date: 2022-01-14 16:58:34
 * @LastEditors: LeeKing
 * @LastEditTime: 2022-01-15 17:05:18
 * @FilePath: \jikeyuan\src\api\user\index.js
 */
import request from 'utils/request.js'

/**
 *
 * @param {*} data {mobile,code,agree}
 * @returns
 */
export const login = data => {
  return request({
    url: '/v1_0/authorizations',
    method: 'POST',
    data
  })
}

/**
 *  获取用户信息
 * @returns
 */
export const getUserInfo = () => {
  return request({
    url: '/v1_0/user/profile',
    method: 'GET'
  })
}
